<?php
	/*
	 *digg顶踩插件
	 *BY QiuJun
	 */
	 
	if($ac=='topic'){
	
		$topicid = $_GET['topicid'];
		
		$TS_PLUGIN['ac']['topic']['diggup'] = $DB->once_num_rows("select * from ".dbprefix."app_group_topics_plugin_digg where topicid='$topicid' and digg='1'");
		
		$TS_PLUGIN['ac']['topic']['diggdown'] = $DB->once_num_rows("select * from ".dbprefix."app_group_topics_plugin_digg where topicid='$topicid' and digg='0'");
	
		//包含CSS（如果有的情况下）
		$TS_PLUGIN['css'] ['topic']['digg'] = 'data/plugins/'.$app.'/digg/digg.css';
		
		//包含JS（如果有的情况下）
		$TS_PLUGIN['js'] ['topic']['digg'] = 'data/plugins/'.$app.'/digg/digg.js';
		
		//包含模板（如果有的情况下）
		$TS_PLUGIN['html']['topic']['digg']	= THINKPLUGIN.'/'.$app.'/digg/digg.html';
		
		
	}